package com.ruoyi.wcf.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 推荐产品管理对象 wcf_recommend_product
 *
 * @author LCL
 * @date 2022-04-06
 */
public class WcfRecommendProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 推荐产品id */
    @Excel(name = "推荐产品id")
    private Long recommendId;

    /** 分类id */
    @Excel(name = "分类id")
    private Long classId;

    /** 产品类别 */
    @Excel(name = "产品类别")
    private String productCategory;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 生产工艺 */
    @Excel(name = "生产工艺")
    private String produceTechnology;

    /** 产品主图 */
    @Excel(name = "产品主图")
    private String mainPicture;

    /** 产品详情图 */
    @Excel(name = "产品详情图")
    private String detailsPicture;

    /** 状态（0-下架，1-上架） */
    @Excel(name = "状态", readConverterExp = "0=-下架，1-上架")
    private Integer status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateAt;

    /** 删除标记（0-正常，1-删除） */
    @Excel(name = "删除标记", readConverterExp = "0=-正常，1-删除")
    private Integer delFlag;

    public void setRecommendId(Long recommendId)
    {
        this.recommendId = recommendId;
    }

    public Long getRecommendId()
    {
        return recommendId;
    }
    public void setClassId(Long classId)
    {
        this.classId = classId;
    }

    public Long getClassId()
    {
        return classId;
    }
    public void setProductCategory(String productCategory)
    {
        this.productCategory = productCategory;
    }

    public String getProductCategory()
    {
        return productCategory;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setProduceTechnology(String produceTechnology)
    {
        this.produceTechnology = produceTechnology;
    }

    public String getProduceTechnology()
    {
        return produceTechnology;
    }
    public void setMainPicture(String mainPicture)
    {
        this.mainPicture = mainPicture;
    }

    public String getMainPicture()
    {
        return mainPicture;
    }
    public void setDetailsPicture(String detailsPicture)
    {
        this.detailsPicture = detailsPicture;
    }

    public String getDetailsPicture()
    {
        return detailsPicture;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setCreateAt(Date createAt)
    {
        this.createAt = createAt;
    }

    public Date getCreateAt()
    {
        return createAt;
    }
    public void setUpdateAt(Date updateAt)
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt()
    {
        return updateAt;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recommendId", getRecommendId())
            .append("classId", getClassId())
            .append("productCategory", getProductCategory())
            .append("price", getPrice())
            .append("produceTechnology", getProduceTechnology())
            .append("mainPicture", getMainPicture())
            .append("detailsPicture", getDetailsPicture())
            .append("status", getStatus())
            .append("createAt", getCreateAt())
            .append("updateAt", getUpdateAt())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
